export default{
        // name:"Manage",
        props: true, //当有动态路由传值 或 params传值 会自动把params数据 放入组件的props
        path: "manage",//path: "/manage",
        meta: {
            title: "后台管理"
        },
        component: () => import("@view/Manage.vue"),//这个匹配的组件会渲染到router-view
        children: [//嵌套子路由,嵌套的子路由的路由出口在上级路由组件里面需要写一个router-view出口
            {
                path: "", //当进入 #/manage 路由的时候 子路由默认渲染Home组件
                name: "Manage",
                component: () => import("@view/Home.vue")
            },
            {
                //  :page(正则用来限定:page的)*后面这个正则用来限定前面整个:page
                //类似 (:page(\\d*))*
                path: "question/:page(\\d*)*", //动态路由 动态路由可以写正则
                meta: {
                    title: "面试题列表"
                },
                component: () => import("@view/questions/List.vue"),
                beforeEnter(to, from, next) {
                    console.log("独享路由守卫 beforeEnter  ===>");
                    next();
                }
            },
            {
                path: "question_add",
                meta: {
                    title: "添加面试"
                },
                component: () => import("@view/questions/Add.vue")
            },
            {
                path: "answer",
                component: () => import("@view/answer/List.vue")
            },
            {
                path: "answer_add",
                component: () => import("@view/answer/Add.vue")
            },
            {
                path: "category",
                component: () => import("@view/category/List.vue")
            },
            {
                path: "category_add",
                component: () => import("@view/category/Add.vue")
            },
            {
                path: "user",
                component: () => import("@view/user/List.vue")
            },
            {
                path: "user_add", component: () => import("@view/user/Add.vue")
            }
        ]
}